package com.qys.livesMall.shop.service;

import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.qys.livesMall.shop.modal.entity.ShopStatisticsEveryDay;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 店铺每日统计 服务类
 * </p>
 *
 * @author
 * @since 2023-11-06
 */
public interface ShopStatisticsEverydayService extends IService<ShopStatisticsEveryDay> {

    ShopStatisticsEveryDay getField(Long shopId, LocalDate date, SFunction<ShopStatisticsEveryDay, Object>... functions);

    List<ShopStatisticsEveryDay>  getField(Long shopId, SFunction<ShopStatisticsEveryDay, Object>... functions);

    List<ShopStatisticsEveryDay> getAllField(Long shopId);

    List<ShopStatisticsEveryDay> getInfoByDate(List<Long> shopIds, LocalDate date);

    void initData(Long shopId);

    List<ShopStatisticsEveryDay> getYesterday(Integer userSysType);
}
